<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="isLogin.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="addBook.do" method="POST">
		书名<input type="text" name="bookName"> <br>
		作者<input type="text" name="bookWriter"> <br>
		价格<input type="text" name="bookPrice"> <br>
		库存<input type="number" name="bookNum"> <br>
		类型<input type="text" name="bookType"> <br>
		<input type="submit" value="添加"> 
	</form>
</body>
<script>
	var result = <%= request.getAttribute("msg")%>
	if(result == 1 ){
		alert("添加成功");
	}else if(result == 0){
		alert("添加失败");
	}
</script>
</html>